%% @author author

-module(hello_client).
-include("hello_thrift.hrl").
-export([test/0]).

p(X)->
	io:format("~s~n", [X]),
	ok.

test()->
	Port = 9090,
	{ok, Socket} = thrift_client:start_link("localhost", 
											Port, 
											hello_thrift),
	{ok, Result} = thrift_client:call(Socket, say, ["world"]),
	p(Result),
	thrift_client:close(Socket),
	ok.
